# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=kipi-plugins
pkgver=24.02.2
pkgrel=0
pkgdesc="A collection of plugins extending the KDE graphics and image applications"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://userbase.kde.org/KIPI"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="
	extra-cmake-modules
	karchive5-dev
	kconfig5-dev
	ki18n5-dev
	kio5-dev
	kwindowsystem5-dev
	kxmlgui5-dev
	libkipi-dev
	qt5-qtbase-dev
	qt5-qtsvg-dev
	qt5-qtxmlpatterns-dev
	samurai
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/graphics/kipi-plugins.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/kipi-plugins-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
893754f9368498dec5507a95a6d1b71da1ee1146894d8ea0b13edf821937ce320f56224fb2b9431a1956b0052341b07902212838e0a8db8880f081a3d9d08856  kipi-plugins-24.02.2.tar.xz
"
